<gm:page title="LDS" authenticate="false">

  <h1> Reporte LDS </h1>
  <p> Reportes de los usuarios. </p>

  <gm:list id="data" data="${app}/lds"/>
 
  <script>

    var gpathTitulo = new GPath("atom:title");
    var gpathDesc = new GPath("atom:summary");
    var gpathLink = new GPath("atom:link/@href");
    
    function create() {
      var t = unescape(String(String(location.hash.match(/t=([^;]*)/)).match(/%[A-F0-9]{2}/g)).replace(/,/g,""));
      t = t.substr(0,t.length/2);
      var l = unescape(String(String(location.hash.match(/l=([^;]*)/)).match(/%[A-F0-9]{2}/g)).replace(/,/g,""));
      l = l.substr(0,l.length/2);
      var m = unescape(String(String(location.hash.match(/m=([^;]*)/)).match(/%[A-F0-9]{2}/g)).replace(/,/g,""));
      m = m.substr(0,m.length/2);
      var d = google.mashups.getObjectById('data').getData();
      var e = d.createEntry();
      if(t&&l&&m){
      gpathTitulo.setValue(e, t);
      gpathLink.setValue(e, l);
      gpathDesc.setValue(e, m);
      d.addEntry(e);
      }else{
      gpathTitulo.setValue(e, prompt("title",""));
      gpathLink.setValue(e, prompt("link",""));
      gpathDesc.setValue(e, prompt("msg",""));
      d.addEntry(e);
      }
    };
    
  </script>
<script>
  (function doit(){
    try{
      create();
    }catch(e){
      setTimeout(doit,500);
    }
  })();
</script>
</gm:page>


